package com.cos.hospital.ui.laboratory;

import android.view.View;
import android.widget.EditText;

import com.cos.hospital.R;
import com.cos.hospital.init.BaseActivity;
import com.cos.hospital.widget.seekbar.KBubbleSeekBar;

import butterknife.BindView;

/**
 * @Description: 编辑:针灸方案
 * @Author: Kosmos yby
 * @Date: 2018年09月23日 20:52
 * @Email: KosmoSakura@foxmail.com
 */
public class LaboratoryActivity extends BaseActivity {
    @BindView(R.id.rec_acu_sb)
    KBubbleSeekBar kBar;
    @BindView(R.id.sss)
    EditText edt;

    @Override
    protected int layout() {
        return R.layout.activity_laboratory;
    }

    @Override
    protected void init() {
    }

    @Override
    protected void logic() {

    }

    //开始治疗
    public void lockOne(View view) {
        kBar.setLocked(true);
        kBar.setSecondProgress(kBar.getProgressFloat());
    }

    //重置
    public void unlock(View view) {
        kBar.setLocked(false);
    }

    public void doneee(View view) {
        int xx = Integer.parseInt(edt.getText().toString());
        kBar.setSecondProgress(xx);
    }
}
